package cn.flaty.services.user.service.impl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.flaty.services.user.entity.User;
import cn.flaty.services.user.service.UserBaseService;
import cn.flaty.services.user.vo.UserVo;

@Service("userBaseService")
public class UserBaseServiceImpl implements UserBaseService {
	

	@Override
	public User login(UserVo u) {
		u.setId(1L);
		u.setUserName("flatychen登陆");
		u.setPhone("123456");
		return u;
	}


	@Override
	public List<User> userList() {
		User u = new User();
		u.setId(1L);
		u.setUserName("flatychen列表");
		u.setPhone("123456");
		List<User> users = new ArrayList<User>();
		users.add(u);
		return users;
	}

	@Override
	public int register(UserVo user) {
		System.out.println("client:"+user.getClientValidateCode());
		System.out.println("server:"+user.getServerValidateCode());
		return 0;
	}
	
	

}
